package com.globalLogic.gps.maps.adapter;

import com.globalLogic.geometry.Point;
import com.globalLogic.gps.graph.INode;

public class PointNodeAdapter implements INode{

	private Point point;
	
	public PointNodeAdapter(Point point) {
		super();
		this.point = point;
	}


	@Override
	public String getId() {
		return point.toString();
	}


	@Override
	public boolean equals(Object node) {
		
		return getId().equals(((INode)node).getId());
	}


	@Override
	public int getXDisplay() {
		
		return (new Double (point.getLatitude()).intValue()*100);
	}


	@Override
	public int getYDisplay() {
		return (new Double (point.getLongitude()).intValue()*100);
	}


	
	
}
